
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module MatLab</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>MatLab</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/v/filer4b/v38q001/yersa/cs373/MatLab/MatLab/MatLab.py">/v/filer4b/v38q001/yersa/cs373/MatLab/MatLab/MatLab.py</a></font></td></tr></table>
    <p><tt>#&nbsp;--------------------------------<br>
#&nbsp;projects/python/matlab/MatLab.py<br>
#&nbsp;Copyright&nbsp;(C)&nbsp;2009<br>
#&nbsp;Yersain&nbsp;Ospanov<br>
#&nbsp;--------------------------------</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="random.html">random</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-add"><strong>add</strong></a>(m, n)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;matice&nbsp;which&nbsp;is&nbsp;an&nbsp;addition&nbsp;of&nbsp;two&nbsp;matrices&nbsp;or&nbsp;a&nbsp;matric&nbsp;with&nbsp;is&nbsp;addition&nbsp;a&nbsp;matric&nbsp;and&nbsp;a&nbsp;scalar</tt></dd></dl>
 <dl><dt><a name="-concat_cols"><strong>concat_cols</strong></a>(m, n)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;matrice&nbsp;which&nbsp;is&nbsp;a&nbsp;concatination&nbsp;of&nbsp;columns&nbsp;of&nbsp;two&nbsp;matrices&nbsp;m&nbsp;and&nbsp;n</tt></dd></dl>
 <dl><dt><a name="-concat_rows"><strong>concat_rows</strong></a>(m, n)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;matrice&nbsp;which&nbsp;is&nbsp;a&nbsp;concationa&nbsp;of&nbsp;rows&nbsp;of&nbsp;two&nbsp;matrices&nbsp;m&nbsp;and&nbsp;n</tt></dd></dl>
 <dl><dt><a name="-diag"><strong>diag</strong></a>(m)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;diagonal&nbsp;of&nbsp;matrice&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-eye"><strong>eye</strong></a>(r, c)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;an&nbsp;identity&nbsp;matrice&nbsp;with&nbsp;r&nbsp;number&nbsp;of&nbsp;rows&nbsp;and&nbsp;c&nbsp;number&nbsp;of&nbsp;columns</tt></dd></dl>
 <dl><dt><a name="-multiply"><strong>multiply</strong></a>(m, n)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;multiplication&nbsp;of&nbsp;two&nbsp;matrices&nbsp;or&nbsp;a&nbsp;matrice&nbsp;which&nbsp;is&nbsp;a&nbsp;multiplication&nbsp;of&nbsp;a&nbsp;matric&nbsp;and&nbsp;a&nbsp;scalar</tt></dd></dl>
 <dl><dt><a name="-ones"><strong>ones</strong></a>(r, c)</dt><dd><tt>This&nbsp;method&nbsp;return&nbsp;a&nbsp;matrix&nbsp;of&nbsp;ones&nbsp;with&nbsp;r&nbsp;number&nbsp;of&nbsp;rows&nbsp;and&nbsp;c&nbsp;number&nbsp;of&nbsp;columns</tt></dd></dl>
 <dl><dt><a name="-rand"><strong>rand</strong></a>(r, c)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;matrix&nbsp;of&nbsp;random&nbsp;values&nbsp;with&nbsp;r&nbsp;number&nbsp;of&nbsp;rows&nbsp;and&nbsp;c&nbsp;number&nbsp;of&nbsp;columns</tt></dd></dl>
 <dl><dt><a name="-slice_col"><strong>slice_col</strong></a>(m, c)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;specified&nbsp;colunm&nbsp;r&nbsp;in&nbsp;a&nbsp;matric&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-slice_row"><strong>slice_row</strong></a>(m, r)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;row&nbsp;r&nbsp;in&nbsp;a&nbsp;given&nbsp;matrice&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-subtract"><strong>subtract</strong></a>(m, n)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;matrice&nbsp;which&nbsp;is&nbsp;an&nbsp;subtraction&nbsp;of&nbsp;two&nbsp;matrices&nbsp;or&nbsp;a&nbsp;subtraction&nbsp;of&nbsp;a&nbsp;matric&nbsp;and&nbsp;a&nbsp;scal$</tt></dd></dl>
 <dl><dt><a name="-sum_cols"><strong>sum_cols</strong></a>(m)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;sum&nbsp;of&nbsp;columns&nbsp;in&nbsp;a&nbsp;given&nbsp;matrix&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-sum_rows"><strong>sum_rows</strong></a>(m)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;sum&nbsp;of&nbsp;rows&nbsp;of&nbsp;a&nbsp;given&nbsp;matrix</tt></dd></dl>
 <dl><dt><a name="-transpose"><strong>transpose</strong></a>(m)</dt><dd><tt>This&nbsp;method&nbsp;return&nbsp;a&nbsp;matrix&nbsp;which&nbsp;is&nbsp;swapped&nbsp;the&nbsp;raws&nbsp;and&nbsp;columns&nbsp;of&nbsp;a&nbsp;given&nbsp;matrix&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-tril"><strong>tril</strong></a>(m)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;lower&nbsp;triangle&nbsp;of&nbsp;a&nbsp;matrix&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-triu"><strong>triu</strong></a>(m)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;an&nbsp;upper&nbsp;triangle&nbsp;of&nbsp;a&nbsp;matrix&nbsp;m</tt></dd></dl>
 <dl><dt><a name="-zeros"><strong>zeros</strong></a>(r, c)</dt><dd><tt>This&nbsp;method&nbsp;returns&nbsp;a&nbsp;matrix&nbsp;of&nbsp;zeros</tt></dd></dl>
</td></tr></table>
</body></html>